MACHINES=(
    "feed-02.us-east-1.aws"
    "feed-02.eu-west-1.aws"
    "feed-02.ap-northeast-2.aws"
    "feed-05.ap-northeast-1.aws"
    "feed-05.cn-hongkong.aliyun"
    "feed-01.ap-northeast-1.aws.huobi"
)
if [ -z "$1" ]
then
echo "no date"
exit 1
fi

d=$1

for m in "${MACHINES[@]}"
do
rm -r /remote/iosg/coin-2/feed_cache2/$m/$d/* && mv /remote/iosg/coin-2/feed_cache2/tmp_bch_check/$m/$d/* /remote/iosg/coin-2/feed_cache2/$m/$d/
echo "$m/$d is finished."
done